﻿@using hc.epm.DataModel.Business;
@model Epm_TzBidResult

@{
    ViewBag.Title = "招标结果详情";
}

<link href="~/Resource/css/ProjectManagement.css" rel="stylesheet" />

<style>
    .hideTr {
        display: none;
    }
</style>

<div class="contentData">
    <form class="form-horizontal" id="mainForm">
        <div class="module-div">
            <h4>项目基本信息</h4>
            <table class="datalist" style="word-break:break-all;word-wrap:break-word;margin-top:10px;">
                <tbody>
                    <tr>
                        <td class="table_title">项目名称：</td>
                        <td class="td-div" colspan="3">
                            <div>@Model.TzTenderingApply.ProjectName</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="table_title">承办部门：</td>
                        <td class="td-div">
                            <div>@Model.TzTenderingApply.UndertakeDepartment</div>
                        </td>
                        <td class="table_title">联系人：</td>
                        <td class="td-div">
                            <div>@Model.TzTenderingApply.UndertakeContacts</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="table_title">联系电话：</td>
                        <td class="td-div">
                            <div>@Model.TzTenderingApply.UndertakeTel</div>
                        </td>
                        <td class="table_title">批复文件或者纪要：</td>
                        <td class="td-div">
                            <div>@Model.TzTenderingApply.ApprovalNo</div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div class="module-div">
            <h4>招标信息</h4>
            <table class="datalist" style="word-break:break-all;word-wrap:break-word;margin-top:10px;">
                <tbody>
                    <tr>
                        <td class="table_title">
                            <span>招标名称：</span>
                        </td>
                        <td class="td-div" colspan="3">
                            <div class="form-group">@Model.TzTenderingApply.TenderingName</div>
                        </td>
                    </tr>

                    <tr>
                        <td class="table_title">
                            <span>招标类型：</span>
                        </td>
                        <td class="td-div">
                            <div>@Model.TzTenderingApply.TenderingTypeName</div>
                        </td>
                        <td class="table_title">
                            <span>招标方式：</span>
                        </td>
                        <td class="td-div">
                            <div>@Model.TzTenderingApply.BidName</div>
                            <input type="hidden" id="BidType" name="BidType" value="@Model.TzTenderingApply.BidType" />
                        </td>
                    </tr>

                    <tr>
                        <td class="table_title">
                            <span>资金预算及依据：</span>
                        </td>
                        <td class="td-div">
                            <div class="form-group">@Model.TzTenderingApply.CapitalBudget 万元</div>
                        </td>
                    </tr>

                    <tr>
                        <td class="table_title">
                            <span>项目概述：</span>
                        </td>
                        <td class="td-div" colspan="3">
                            <div class="form-group">@Model.TzTenderingApply.ProjectSummary</div>
                        </td>
                    </tr>


                    <tr class="hideTr">
                        <td class="table_title">
                            <span>邀请谈判理由：</span>
                        </td>
                        <td class="td-div" colspan="3">
                            <div class="form-group">@Model.TzTenderingApply.InvitationNegotiate</div>
                        </td>
                    </tr>


                    <tr class="hideTr">
                        <td class="table_title">
                            <span>拟邀请潜在谈判人：</span>
                        </td>
                        <td class="td-div" colspan="3">
                            <div class="form-group">@Model.TzTenderingApply.InvitationNegotiator</div>
                        </td>
                    </tr>

                </tbody>
            </table>
        </div>


        <div class="module-div">
            <h4>中标候选人前三名</h4>
            <table class="datalist" style="word-break:break-all;word-wrap:break-word;margin-top:10px;">
                <tbody>
                    <tr>
                        <th class="table_title" style="width: 219px;">编号</th>
                        <th class="td-div">公司名称</th>
                        <th class="table_title">价标</th>
                        <th class="td-div">备注</th>
                    </tr>
                    <tr>
                        <td>1</td>
                        <td>
                            <div class="form-group">@Model.BidderOne</div>
                        </td>
                        <td>
                            <div class="form-group">@Model.QuotationOne</div>
                        </td>
                        <td>
                            <div class="form-group">@Model.RemarkOne</div>
                        </td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>
                            <div class="form-group">@Model.BidderTwo</div>
                        </td>
                        <td>
                            <div class="form-group">@Model.QuotationTwo</div>
                        </td>
                        <td>
                            <div class="form-group">@Model.RemarkTwo</div>
                        </td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>
                            <div class="form-group">@Model.BidderThree</div>
                        </td>
                        <td>
                            <div class="form-group">@Model.QuotationThree</div>
                        </td>
                        <td>
                            <div class="form-group">@Model.RemarkThree</div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div class="module-div">
            <h4>拟推荐单位</h4>
            <table class="datalist" style="word-break:break-all;word-wrap:break-word;margin-top:10px;">
                <tbody>
                    <tr>
                        <td class="table_title">拟推荐单位：</td>
                        <td class="td-div" colspan="3">
                            <div>@Model.RecommendUnit</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="table_title">推荐理由：</td>
                        <td class="td-div" colspan="3">
                            <div>@Model.RecommendReason</div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div class="layui-form-item  btn-save" style="margin-top:60px;text-align:center;">
            <input type="button" id="Cancel" value="返&nbsp;&nbsp;&nbsp;回" class="layui-btn layui-btn-big " />
        </div>
    </form>
</div>

<script>
    //上传
    $("#Cancel").on("click", function () {
        window.location.href = "/TzBidResult/Index";
    });

    //根据招标方式是否展示隐藏字段
    if ($("#BidType").val() == "ZBFSJINGZHENG") {
        $(".hideTr").show();
    }
    else {
        $(".hideTr").hide();
    }
</script>